package com.trust.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author ccc
 * @since 2023-11-10 14:11:07
 */
@Data
@TableName("material_input")
public class MaterialInput {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("是否启用")
    private Integer enabled;

    @ApiModelProperty("是否默认")
    private Integer isDefault;

    @ApiModelProperty("介绍")
    private String introduce;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("图片")
    private String pic;

    @ApiModelProperty("类型")
    private Integer type;

    @ApiModelProperty("换算率")
    private BigDecimal rate;

    @ApiModelProperty("计量单位")
    private String unit;

    @ApiModelProperty("编号")
    private String code;

    @ApiModelProperty("基础计量单位")
    private Integer baseUnit;

}